package com.company.netty2;

import com.company.netty.MyWebSocketHandler;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.codec.LineBasedFrameDecoder;
import io.netty.handler.codec.http.HttpObjectAggregator;
import io.netty.handler.codec.http.HttpServerCodec;
import io.netty.handler.codec.string.StringDecoder;
import io.netty.handler.stream.ChunkedWriteHandler;

/**
 * @description: 初始化连接时候的各个组件
 * @author: ruoan
 * @date: 2020/12/28 22:47
 */
public class MyChannelInitialHandler extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel e) throws Exception {
        //e.pipeline().addLast(new LineBasedFrameDecoder(1024));
        //e.pipeline().addLast(new StringDecoder());
        //e.pipeline().addLast(new TimeServerHandler());
    }
}
